﻿using Camc.Quality.QualityAnalysis.RFormBase;
using Camc.Quality.QualityAnalysis.RFormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.QualityAnalysis.RFormEntity
{
   public class R管路活门气密点检查记录表皂泡法: RTableBase
    {

        public R管路活门气密点检查记录表皂泡法(int serialNum, Guid rWorkStepEntityId, Guid rProcessesEntityId, int sort, string parentProductNum, string fisrtDrawingNum, string secondDrawingNum, string recordElement,string recordRemark)
        {
            SerialNum = serialNum;
            RWorkStepEntityId = rWorkStepEntityId;
            RProcessesEntityId = rProcessesEntityId;
            Sort = sort;

            ParentProductNum = parentProductNum;
            FisrtDrawingNum = fisrtDrawingNum;
            SecondDrawingNum = secondDrawingNum;
            RecordElement = recordElement;
            RecordRemark = recordRemark;
        }
        public override string FormName { get; protected set; } = "管路活门气密点检查记录表皂泡法";
        public override string ParentProductNum_DisplayName { get; protected set; } = "系统名称";
        public override string FisrtDrawingNum_DisplayName { get; protected set; } = "测点前管路图号";
        public override string SecondDrawingNum_DisplayName { get; protected set; } = "测点后管路图号";
        public override string RecordElement_DisplayName { get; protected set; } = "检查方法";
        public RRecordRequirementsEntity SetRecordRequirements(RRecordRequirementsEntity entity, string recordRequire, string designerDemand, string processorDemand, string remarks)
        {
            entity.SetRecordRequire(recordRequire, "检查压力(MPa)");
            entity.SetDesignerDemand(designerDemand, "设计要求值Pa*m3/s");
            entity.SetProcessorDemand(processorDemand, "工艺要求值");
            entity.SetRemarks(remarks, "备注" );
            return entity;
        }
        public RMeasuredResultEntity SetMeasuredResult(RMeasuredResultEntity entity, string firstMeasuredValues)
        {
            entity.SetFirstMeasuredValues(firstMeasuredValues, "检查结果");
            return entity;
        }
    }
}
